Skip to content

Conversation

@Who-is-PS
Copy link
Member

@Who-is-PS Who-is-PS commented Oct 30, 2025

Description

This PR changes the TypeScript target from the current setting to "ES2019" instead of "ES2021" (as proposed in PR #3801). This is to address build failures in the dry run while still improving TypeScript compatibility.
The change is similar to what was done in the component-toolkit repository (PR #169), where changing to ES2019 was successful without causing downstream failures with Webpack 4 compatibility.
As part of this work, I reached out to the PolarisReactFileUpload team, deprecated the package, and added the fix.
Related links, issue #, if available:
Original PR with ES2021 target (to be closed): #3801
Similar successful change in component-toolkit: cloudscape-design/component-toolkit#169
Successful dry run build: 7595551348

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.99%. Comparing base (71a0376) to head (3b76f93).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3986      +/-   ##
==========================================
- Coverage   97.26%   96.99%   -0.28%     
==========================================
  Files         861      861              
  Lines       25469    25209     -260     
  Branches     9095     9093       -2     
==========================================
- Hits        24772    24451     -321     
- Misses        650      752     +102     
+ Partials       47        6      -41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

TrevorBurnham and others added 4 commits October 31, 2025 10:59
All targeted browsers support ES2021 syntax. This change provides an
immediate bundle size reduction, with the potential for further gains if
code is rewritten to take advantage of optional chaining and nullish
coalescing.

* Optional chaining:
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#browser_compatibility
* Nullish coalescing:
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing#browser_compatibility
@Who-is-PS Who-is-PS added this pull request to the merge queue Nov 12, 2025
Merged via the queue into main with commit 7af314d Nov 12, 2025
49 checks passed
@Who-is-PS Who-is-PS deleted the pr-3801 branch November 12, 2025 12:58
ngynmt pushed a commit to ngynmt/components that referenced this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants